Skip to content

Conversation

@havenwood
Copy link

This PR adds a JSON addition for Enumerator::ArithmeticSequence since it was added to the Ruby stdlib.

##
# Existing Range support
require 'json/add/range'
(0..42).to_json

##
# Proposed Enumerator::ArithmeticSequence addition
require 'json/add/arithmetic_sequence'
((0..42) % 3).to_json

I forgot JSON was a gem yesterday and made a PR to Ruby and filed feature request. I realized my mistake this morning, and opened this PR. 🙂

@havenwood havenwood force-pushed the add_json_arithmetic_sequence branch from 3967bb0 to 04e299a Compare May 7, 2024 18:05
@byroot
Copy link
Member

byroot commented Oct 17, 2024

Thanks for the PR but I don't wish to add any more json/add classes.

@byroot byroot closed this Oct 17, 2024
@hsbt
Copy link
Member

hsbt commented Oct 18, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants